Add code to initialize bidi iterator for displaying strings.
authorEli Zaretskii <eliz@gnu.org>
Thu, 9 Jun 2011 14:39:27 +0000 (17:39 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 9 Jun 2011 14:39:27 +0000 (17:39 +0300)
commitd87109796c9decaaf505cfe3c231761038f383c2
tree6394941a98d2bb1562c97c1639ca29d6713de7ac
parent54f60500006ff439ecbeab976cf2965f3c28339a
Add code to initialize bidi iterator for displaying strings.
For now, ifdef'ed away.  Some more testing.

 src/bidi.c (bidi_level_of_next_char): Allow the sentinel "position"
 to pass the test for valid cached positions.
 src/xdisp.c (init_iterator): Call bidi_init_it only of a valid
 buffer position was specified.  Initialize paragraph_embedding to L2R.
 (reseat_to_string): Initialize the bidi iterator (for now ifdef'ed out).
 (display_string): If we need to ignore text properties of
 LISP_STRING, set IT->stop_charpos to IT->end_charpos.  (The
 original value of -1 will not work with bidi.)
 src/dispextern.h (struct bidi_string_data): New member lstring.
src/ChangeLog
src/bidi.c
src/dispextern.h
src/xdisp.c